using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Ent.Web.Helper;
using Ent.Web.WebControl;
using Ent.Voice.Nomination;

public partial class MaximizeView : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int id = MathFunction.ConvertToInteger(Request.QueryString["id"]);
        string c = Request.QueryString["c"];                                //Access code
        Entry en = Entry.GetEntry(id, c);
        DashEntry de = new DashEntry();
        de.ShowMedia = true; ;
        de.FileWidth = 950;
        de.FileHeight = 450;
        de.EntryMaxChar = -1;
        de.ShowControls = true;
        de.AutoStart = false;
        de.ShowThumb = false;
        de.AllowMaximize = false;
        de.ShowComments = false;
        if (en != null)
        {
            cFeed.EntryId = en.Id;
            cFeed.EntryName = en.Title;
            cFeed.Center = false;
            lblContent.Text = FileHelper.GetUploadString(en, de, Server.MapPath("~"), ConfigurationManager.AppSettings["BaseUrl"], ResourceHelper.Get("LBL_Comments"));
        }
        btnCancelNoWarn.Attributes.Add("onclick", "document.body.innerHTML=''; parent.votewindow.hide();");
    }

}
